import java.util.ArrayList;
import java.util.List;

/**
 * Created by 84995 on 2020/1/15.
 */
public class test10 {

    public static void main(String[] args) {


        String[] strs={"12","345","6789","1","123","4567"};

        List<String> list1=new ArrayList<>();
        List<String> list2=new ArrayList<>();
        for (int i = 0; i <strs.length ; i++) {
            if (strs[i].length()%2==0){
              list1.add(strs[i]);
            }else {
                list2.add(strs[i]);
            }
        }

        System.out.println("偶数长度字符串："+list1.toString());
        System.out.println("奇数长度字符串："+list2.toString());

    }
}
